<section class="content list-container">
    <section class="list-head">
        <section class="action-btns pull-right">
            {if $settings['has_manage']}<a class="btn btn-default btn-add" href="{:url('menu/save')}">新增</a>{/if}
        </section>
    </section>
    <section class="table-list">
        <form class="form form-inline" id="search-form">
            <div class="form-group">
                <input type="text" class="form-control" name="name" placeholder="名称">
            </div>
            <div class="form-group">
                <select class="form-control" name="status">
                    <option>1</option>
                    <option>2</option>
                    <option>3</option>
                    <option>4</option>
                    <option>5</option>
                </select>
            </div>
            <button type="button" class="btn btn-default search-btn">提交</button>
        </form>
        <table class="table table-hover" data-columns="{$headers|array_keys|json_encode}" data-params="{$settings|json_encode}">
            <!--<caption>悬停表格布局</caption>-->
            <thead>
            <tr>
                {if $settings['has_checkbox']}<th><input lay-ignore type="checkbox" class="select-all"><span>全选</span></th>{/if}
                {foreach $headers as $key => $name}
                <th>{$name}</th>
                {/foreach}
                {if $settings['has_manage']}<th>管理</th>{/if}
            </tr>
            </thead>
            <tbody>
            </tbody>
        </table>
    </section>

    <div id="paginate" class="text-center"></div>
</section>